package com.dingding.order.code.order;

public enum PublishOrderEnum {
	
	OK(200,"发单成功"),
	NOT_MATCH_PUBLISH_CONDITION(500,"不符合发单规则"),
	MAKE_ORDER_ERROR(501,"下单时数据库异常");

	private int code; // 状态码

	private String message; // 状态码消息

	private PublishOrderEnum(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
